<?php

namespace App\Http\Controllers\Admin\Analysis;

use App\Http\Controllers\Admin\BaseController;
use App\Repositories\Analysis\CallerRepository;
use Illuminate\Http\Request;

class CallerController extends BaseController
{
    public function __construct()
    {
        $this->set('analysis/caller');
    }

    function index()
    {
        return $this->view('index');
    }

    function effective(){
        
        return $this->view('effective');
    }
    function pager_effective(CallerRepository $rep, Request $request)
    {
        return $rep->effective($request->all());
    }
    //推广月报
    function promotion(){

        return $this->view('promotion');
    }
    function pager_promotion(CallerRepository $rep, Request $request)
    {
        return $rep->promotion($request->all());
    }
    function pager(CallerRepository $rep, Request $request)
    {
        return $rep->adminPager($request->all());
    }
}